package com.xbs.controller.backstage;
import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * 普通车辆管理
 */
import com.xbs.controller.base.BaseServlet;
import com.xbs.entity.CarManageEntity;
import com.xbs.service.selfdriving.CarManageService;
@WebServlet("/backstage/selfDrivingcar")
public class selfDrivingServlet extends BaseServlet {
	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		doPost(req, resp);
	}
	
	@Override
	protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		CarManageService carManageservice = new CarManageService();
		List<CarManageEntity> carManagelist = carManageservice.selAll();
		req.setAttribute("carManage", carManagelist);
		forward("admin/basicSetting/xw_carManage");
	}
}
